enhance test_encoding to check up on gbfile.
authortsteven4 <tsteven4@gmail.com>
Thu, 9 Nov 2017 16:17:50 +0000 (09:17 -0700)
committertsteven4 <tsteven4@gmail.com>
Thu, 9 Nov 2017 16:17:50 +0000 (09:17 -0700)
test_encoding

index cabe47fa50f200652870fa9db42ac0f18eecaa42..44d9b49c478408778f3dd4b1d4880405461fb97f 100755 (executable)
@@ -30,6 +30,14 @@ if  locale -a | grep -q en_US.iso88591 ; then
     echo "ERROR: The output file name was mangled."
     errorcount=`expr $errorcount + 1`
   fi
+
+# test output file name mangling using a format that uses gbfile
+  ${PNAME} -i gpx -f ${REFERENCE}/bounds-test.gpx -o unicsv -F ${TMPDIR}/fileĀ¢.csv
+  count=$(ls -1 -l ${TMPDIR}/fileĀ¢.csv | wc -l)
+  if [ $count -lt 1 ]; then
+    echo "ERROR: The output file name was mangled."
+    errorcount=`expr $errorcount + 1`
+  fi
 else
   echo "$0 cannot run without the en_US.iso88591 locale."
 fi